package pong.game;

import pong.mathematic.Vec2;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;

public class Tablo 
{
	Paint					paint 		= new Paint();
	String					Tablo		= "";
	Vec2					pos			= new Vec2();
	
	public Tablo(int height, int width)
	{
		paint.setColor(Color.rgb(100, 100, 100));
        paint.setTextSize(height/10);
        
        pos.x	= width / 5;
        pos.y	= height /1.5f;
	}
	
	public void render(Canvas canvas, int point1, int point2)
	{
		Tablo = ""+point1+" : "+point2;
		canvas.drawText(Tablo, pos.x, pos.y, paint);
	}
}
